package com.softline.documentsmall.dao;


import com.softline.documentsmall.entity.DictionaryRelationVo;
import com.softline.documentsmall.entity.WordVo;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface DictionaryRelationMapper {

    List<DictionaryRelationVo> list(@Param("type") String type, @Param("offset") Integer offset, @Param("pageSize") Integer pageSize, @Param("title") String title);

    Integer getTotal( @Param("title") String title);

    void deleteByDictionaryId(@Param("dictionaryId")String dictionaryId);

    void insertBatch(@Param("wordList")List<WordVo> wordList,@Param("dictionaryId") String dictionaryId);

    List<WordVo> getWordList(@Param("dictionaryId") String dictionaryId);
}
